<?php

class Tag extends AppModel {  
    var $name = 'Tag';  
    var $hasAndBelongsToMany = array('Comment'=>array('className'=>'Comment', 'unique' =>false), 'Post'=>array('className'=>'Post', 'unique' =>false), 
            'Parent'=>array(
               'className' => 'Tags',
               'joinTable' => 'tags_parents',
               'foreignKey' => 'tag_id',
               'associationForeignKey' => 'parent_id',
               'unique' => false,
              )
             ); 
        }  
?>
